package com.neu.cpsp.service.impl;
/*
    @author neu.xiangwenjuan
    @create 2022/4/15
*/

import com.neu.cpsp.dao.EvaluateRecordDetailMapper;
import com.neu.cpsp.pojo.EvaluateRecordDetail;
import com.neu.cpsp.pojo.EvaluateRecordDetailEn;
import com.neu.cpsp.service.EvaluateRecordDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class EvaluateRecordDetailServiceImpl implements EvaluateRecordDetailService {

    @Autowired
    private EvaluateRecordDetailMapper mapper;

    @Override
    public List<EvaluateRecordDetailEn> selectAllDetail(String departmentId) {
        return mapper.selectAllDetail(departmentId);
    }

    @Override
    public List<EvaluateRecordDetailEn> selectDetailByEmployee(String employeeIdCard) {
        return mapper.selectDetailByEmployee(employeeIdCard);
    }

    @Override
    public List<EvaluateRecordDetailEn> selectByDepart(String department, String teamGroup, String startTime, String endTime) {
        return mapper.selectByDepart(department, teamGroup, startTime, endTime);
    }

    @Override
    public EvaluateRecordDetail selectByPrimaryKey(Integer id) {
        return mapper.selectByPrimaryKey(id);
    }

    @Override
    public int insertDetail(EvaluateRecordDetail evaluateRecordDetail) {
        return mapper.insertDetail(evaluateRecordDetail);
    }

    @Override
    public int deleteRecordDetail(Integer id) {
        return mapper.deleteRecordDetail(id);
    }

    @Override
    public EvaluateRecordDetailEn selectDetailById(Integer id) {
        return mapper.selectDetailById(id);
    }
}
